﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Smallerp.Contracts.DataContracts
{
    [DataContract]
    public class BoardInfoDCT
    {
        [DataMember]
        public string BoardName { get; set; }
        [DataMember]
        public string BoardPath { get; set; }
        [DataMember]
        public decimal UsefulNum{ get; set; }
        [DataMember]
        public decimal PhotoSName { get; set; }
        [DataMember]
        public decimal BoardArea { get { return Math.Round(Width * Height / 10000, 4); } set { ;} }
        [DataMember]
        public decimal Width { get; set; }
        [DataMember]
        public decimal Height { get; set; }
        [DataMember]
        public decimal PhotosAreas { get; set; }
        [DataMember]
        public decimal HeightInch { get { return Height / (decimal)2.54; } set { ;} }
    }
}
